package com.zhudeshuai.zhudemolist.api;

import com.zhudeshuai.zhudemolist.bean.WeatherInfoResult;

import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * 有关天气的api
 *
 * @author zhudeshuai
 * @since 16/3/19
 */
public interface WeatherInfoApi {
    //    http://www.weather.com.cn/data/sk/101110101.html

    /**
     * 获取某个城市天气信息
     */
    @GET("data/sk/{cityId}.html")
    Observable<WeatherInfoResult> getWeatherInfo(@Path("cityId") String cityId);
}
